﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FredCK.FCKeditorV2;

public partial class ManageBanner : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SetPropertyFileUpload1();
        SetPropertyFileUpload2();
    }
    private void SetPropertyFileUpload1()
    {
        FileUpload1.FolderUpload = "Intro";
        Control ctl = DetailsView_Banner1.FindControl("txtImage");
        if (ctl != null)
        {
            TextBox txtImageUrl = ctl as TextBox;
            FileUpload1.ObjectControl = txtImageUrl;
        }
    }
    private void SetPropertyFileUpload2()
    {
        FileUpload2.FolderUpload = "Intro";
        Control ctl = DetailsView_Banner2.FindControl("txtImage");
        if (ctl != null)
        {
            TextBox txtImageUrl = ctl as TextBox;
            FileUpload2.ObjectControl = txtImageUrl;
        }
    }
}
